package com.content.Entity.artist;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Artist {
    private String artistId;
    private String categoryId;
    private String schoolId;
    private String artistName;
    private String avatar;
    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate deathTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private String createUser;
    private String updateUser;

    private String token;

    List<ArtistWork> works;

    List<ArtistFeatures> features;

    List<ArtistHistory> histories;


    private String schoolName;
    private String categoryName;
}
